<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CreateUrls.aspx.cs" MasterPageFile="~/MasterPage.master" Inherits="CreateUrls" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Content1" Runat="Server">
<div id="content-container">

<div id="content"> <a name="maincontent" id="maincontent"></a>
    <asp:Label ID="lblUrl" runat="server" Text="Enter site address" Width="114px"></asp:Label>&nbsp;
            <asp:TextBox ID="tbUrl" runat="server" Width="348px"></asp:TextBox>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tbUrl"
                ErrorMessage="Internet address is incorrect" ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?">*</asp:RegularExpressionValidator>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbUrl"
                ErrorMessage="Field is required">*</asp:RequiredFieldValidator><br />
            <br />
            <asp:Label ID="lblLevel" runat="server" Text="Enter level" Width="72px"></asp:Label>
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
    &nbsp; &nbsp;<asp:TextBox ID="tbLevel" runat="server"
                Width="32px"></asp:TextBox>
            <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="tbLevel"
                ErrorMessage="Incorrect value" MaximumValue="100" MinimumValue="0" Type="Integer">*</asp:RangeValidator>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbLevel"
                ErrorMessage="Field is required">*</asp:RequiredFieldValidator><br />
            <br />
        &nbsp;<asp:Button ID="btnAdd" runat="server" CssClass="button-search" OnClick="btnAdd_Click" Text="Add site" /><br />
        &nbsp;<br />
        <asp:GridView ID="gvUrls" runat="server" BackColor="White" BorderColor="#336666"
            BorderStyle="Double" BorderWidth="3px" CellPadding="4" GridLines="Horizontal" >
            <FooterStyle BackColor="White" ForeColor="#333333" />
            <RowStyle BackColor="White" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
        </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"></asp:ObjectDataSource>
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
        <asp:Button ID="btnGetContent" CssClass="button-search"  runat="server" CausesValidation="False" OnClick="btnGetContent_Click"
            Text="Get websites content" /><br />
        <br />
        <br />
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
   </div>
   
   <div id="content-side">
    <h2>Notes</h2>
    <p>Add site address and level of indexing urls. Press GetContent to start indexing.</p>
    <div class="separator-side-column"></div>
    
    <div class="separator-side-column"></div>
    <h2>Popular links</h2>
    <ul class="link-list-vertical">
      <li><a href="http://www.google.pl" title="Users will see this text when they roll over this link. Keep it short and consise. Use this text to clarify the purpose of the link.">Google</a></li><li><a href="http://www.wp.pl" title="Users will see this text when they roll over this link. Keep it short and consise. Use this text to clarify the purpose of the link.">Wirtualna Polska</a></li><li><a href="http://www.onet.pl" title="Users will see this text when they roll over this link. Keep it short and consise. Use this text to clarify the purpose of the link.">Onet.pl</a></li></ul>
  </div>
  
</div>
</asp:Content>
